package com.jay.media.music.ui.setting

import android.view.View
import android.view.ViewGroup
import androidx.lifecycle.ViewModelProvider
import com.jay.base.ui.BaseFragment
import com.jay.media.music.ui.HomeActivity
import com.jay.media.music.ui.R
import com.jay.media.music.ui.databinding.FragmentSettingBinding

class SettingFragment : BaseFragment() {

    private lateinit var slideshowViewModel: SettingViewModel
    private var _binding: FragmentSettingBinding? = null

    private val binding get() = _binding!!

    override fun rootView(container: ViewGroup?): View? {
        _binding = FragmentSettingBinding.inflate(layoutInflater, container, false)
        return binding.root
    }

    override fun initView(view: View) {
        slideshowViewModel =
            ViewModelProvider(this).get(SettingViewModel::class.java)

        var homeActivity = mActivity as HomeActivity
        homeActivity.setupToolbarNavBar(binding.toolbar, R.drawable.ic_menu)
    }

    override fun onDestroyView() {
        super.onDestroyView()
        _binding = null
    }
}